package StudyCode.summary.myfile;

import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreatePathRelativeToCurrentFolder {
	public static void main(String[] args) {
		Path path06 = Paths.get("folder1/folder2/folder3/test.txt");
		System.out.println(path06);
		Path path07 = Paths.get("folder1", "folder2/folder3/test.txt");
		System.out.println(path07);
		Path path08 = FileSystems.getDefault().getPath("folder1/folder2/folder4", "test.txt");
		System.out.println(path08);
		Path path09 = FileSystems.getDefault().getPath("folder1/folder2/folder3/test.txt");
		System.out.println(path09);
	}
}
